package com.huayal.mall.search.controller.web;

import com.huayal.mall.search.service.MallSearchService;
import com.huayal.mall.search.vo.SearchParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class SearchController {

    @Autowired
    MallSearchService mallSearchService;

    @GetMapping("/list.html")
    public String getListHtml(@RequestParam SearchParam searchParam){

        //通过对应的Service根据传递过来相关的信息去ES中检索对应的数据

        return "index";
    }

}
